home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / client / Imakefile < prev    next >
Makefile  |  1996-07-24  |  2KB  |  70 lines

  1. /*   CrossFire, A Multiplayer game for X-windows
  2.  *
  3.  *   $Id: Imakefile,v 1.11 1996/07/24 06:58:15 master Exp master $
  4.  *
  5.  *   Copyright (C) 1992 Frank Tore Johansen
  6.  *
  7.  *   This program is free software; you can redistribute it and/or modify
  8.  *   it under the terms of the GNU General Public License as published by
  9.  *   the Free Software Foundation; either version 2 of the License, or
  10.  *   (at your option) any later version.
  11.  *
  12.  *   This program is distributed in the hope that it will be useful,
  13.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *   GNU General Public License for more details.
  16.  *
  17.  *   You should have received a copy of the GNU General Public License
  18.  *   along with this program; if not, write to the Free Software
  19.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  *   The author can be reached via e-mail to frankj@ifi.uio.no.
  22.  */
  23.  
  24. #include "../config/crossfire.tmpl"
  25.  
  26. INCLUDES = -I. -I../include $(RPLAY_INCDIR)
  27.  
  28. #ifdef XPM_PIX
  29. XPM_LIB = $(XPM_LIBDIR) -lXpm
  30. #endif
  31.  
  32. /* LOCAL_LDFLAGS = -L../common /* SGI doesn't understand this... */
  33. LOCAL_LIBRARIES = -L../common -lcross $(XPM_LIB) $(XLIB) $(DLSYM) $(MALLOC_LIBS)
  34.  
  35. #ifdef OSFArchitecture
  36. LOCAL_LIBRARIES = $(LOCAL_LIBRARIES) -lbsd
  37. TARGET = -Dosf1
  38. #endif
  39.  
  40. DEFINES = -DFONTDIR=\"${FONTDIR}\" -DFONTNAME=\"$(FONTNAME)\" $(TARGET) \
  41.       -DLIBDIR=\"$(C_LIBDIR)\" $(COMPRESS_DEF)
  42.  
  43. SRCS = client.c
  44. OBJS = client.o
  45.  
  46. PROGRAMS = crossclient
  47.  
  48. DEPLIBS = ../common/libcross.a
  49.  
  50. AllTarget(crossclient)
  51. DependTarget()
  52. NormalProgramTarget(crossclient, $(OBJS),$(DEPLIBS), $(LOCAL_LIBRARIES), )
  53. InstallProgram(crossclient,$(C_BINDIR))
  54.  
  55. ../common/libcross.a:
  56.     (cd ../common; $(MAKE) $(MFLAGS) all)
  57.  
  58. proto:
  59.     cextract +Ap -P -o proto.h -I$(INCROOT) $(INCLUDES) \
  60.     -I/usr/local/lib/gcc-include -cpp-program="gcc -E -C" \
  61.     $(SRCS)
  62.     chmod 664 proto.h
  63.  
  64. InsertArchive(Imakefile client.c proto.h,client)
  65.  
  66. ifi: crossclient install
  67.     $(RM) crossclient
  68.     $(MV) $(C_BINDIR)/crossclient $(C_BINDIR)/../$(HOSTTYPE)
  69.     chmod 755 $(C_BINDIR)/../$(HOSTTYPE)/crossclient
  70.